package com.chaos.framework.model.dto;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;


/**
 * @author Jacky
 * @date 2019/11/7 17:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ID extends DTO {
    @NotNull(message = "id不能为空")
    private Long id;

    public static ID of(Long id) {
        return new ID(id);
    }

}
